import org.springframework.util.DigestUtils;

public class dd {
    public static void main(String[] args) {
        String password = "123456";
        String salt = "salt123";
        String encrypted = DigestUtils.md5DigestAsHex((password + salt).getBytes());
        System.out.println(encrypted); // 输出正确的加密结果
    }
}